package com.esxy.manage.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.esxy.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*@Controller
public class TestContrller {
    @Reference(interfaceClass = TestService.class)
    private TestService testService;

    @RequestMapping("/getHw")
    @ResponseBody
    public String getHw(){
        return testService.getHw();
    }
}*/
@RestController
public class TestController {
    @Reference(interfaceClass = TestService.class)
    private TestService testService;

    @RequestMapping("/getHw")
    public String getHw(){
        return testService.getHW();
    }



}


